import store from '../store'

export const cookiesType={
    token:'luxu-client-token',
    refreshToken:'luxu-client-refresh-token',
    languageId:'luxu-client-language'
}

export function getCookie(type:string){
    return localStorage.getItem(type)
}

export function setCookie(type:string,value:any){
    localStorage.setItem(type,value)
}

export function removeCookie(type:string){
    localStorage.removeItem(type)
}

export function clearCookie(){
    localStorage.clear()
}

